module events {

    export class SceneEvent extends egret.Event {

        public static readonly FULLSCREEN_SHOW_TYPE: number = 1;

        public static readonly POPUP_SHOW_TYPE: number = 2;

        public static readonly SWITCH_SCENE: string = "switch_scene";

        public sceneId: number;

        public showType: number = SceneEvent.FULLSCREEN_SHOW_TYPE;

        public extra:any;

        public constructor(sceneId: number, extra: any = {}, showType: number = SceneEvent.FULLSCREEN_SHOW_TYPE) {
            super(SceneEvent.SWITCH_SCENE, false, false, extra);
            this.sceneId = sceneId;
            this.showType = showType;
            this.extra = extra;
        }

    }

}